﻿<%@ Page Title="" Language="C#" MasterPageFile="~/companypart/CompanyMastermaster.master" AutoEventWireup="true" CodeFile="NewProduct.aspx.cs" Inherits="NewProduct" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Src="~/GoogleMapForASPNet.ascx" TagName="GoogleMapForASPNet" TagPrefix="uc1" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>إضافة مجلة أو دورية</title>
    <link href="jqModal.css" rel="stylesheet" type="text/css" />

<%--    <script src="jquery-1.3.2.min.js" type="text/javascript"></script>--%>
    <script src="jqModal.js" type="text/javascript"></script>
<script type="text/javascript">

    function there() {

        $("#dialog").jqm({ modal: true }).jqmShow();


    }
   
       
    </script>
<style type="text/css">
      tr .tabbone4{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:right;
	
}
.adel4{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  right;
}
         .zr3 {
	background-image:url('../images/button2.png');
	display:block;
	float:right;
	 padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;


}
.zr3:hover ,.zr3:active {
	background-image:url('../images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
.txt3
{
    border:1px solid black;
    margin-bottom:5px;
    margin-top:5px;
    }
        .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 450px;
    
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}
.req
{
    color:Red;
    }
        .lok
     {
	display: none;
	color: red;
     }
        
     .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -200px;
    width: 450px;
    
    background-color: #fff;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

.jqmOverlay { background-color: #000; }

/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html .jqmWindow 
{
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 120) + 'px');
}
    .style1
    {
        width: 152px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
        
       <br />
                <div align="right" >
                  
                                    <table class="tab3" >
                                    <tr>
                                    <td class="he3">
                                        <asp:Label ID="header" runat="server"  meta:resourcekey="header" ></asp:Label>
                                    </td>
                                    </tr>
                                    <tr >
                                    <td class="tabbone3"  >
                                        <asp:Label ID="lblsurname" runat="server" Text="الفاتح" 
                                            meta:resourcekey="lblsurnameResource1"></asp:Label>
                                        </td>
                                   
                                    <td class="tabbone3" >
                                        <asp:Label ID="lblfax" runat="server" Text="حقل 008 الثابت الطول" 
                                            meta:resourcekey="lblfaxResource1"></asp:Label>
                                        </td>
                                    
                                    <td class="tabbone3">
                                        <asp:Label ID="lblposition" runat="server" Text="ردمك/ ردمد" 
                                            meta:resourcekey="lblpositionResource1"></asp:Label>
                                        </td>
                                    
                                    <td class="tabbone3" >
                                        <asp:Label ID="lblfirstname" runat="server" Text="النوع" 
                                            meta:resourcekey="lblfirstnameResource1"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td class="adel3">
                                        <asp:TextBox ID="leader" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                            BorderWidth="1px" meta:resourcekey="leaderResource1"></asp:TextBox>
                                        </td>
                                    
                                    <td class="adel3">
                                        <asp:TextBox ID="fix" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                            BorderWidth="1px" meta:resourcekey="fixResource1"></asp:TextBox>
                                        </td>
                                    
                                    <td class="adel3">
                                        <asp:TextBox ID="isn" runat="server"  Width="128px" BorderColor="Black" 
                                            BorderStyle="Solid" BorderWidth="1px" meta:resourcekey="isnResource1"></asp:TextBox>
                                        <br />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                            ControlToValidate="isn" ErrorMessage="<%$ Resources:Resource, required %>" 
                                            ValidationGroup="go" meta:resourcekey="RequiredFieldValidator3Resource1"></asp:RequiredFieldValidator>
                                        </td>
                                   
                                    <td class="adel3">
                                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                            SelectCommand="SELECT product_type+','+tag as names, [id] ,[product_type] FROM [product_types]">
                                        </asp:SqlDataSource>
                                        <asp:DropDownList ID="DropDownList1" runat="server"  BorderColor="Black" 
                                            BorderStyle="Solid" BorderWidth="1px"
                                            DataSourceID="SqlDataSource2" DataTextField="names" DataValueField="id" 
                                            meta:resourcekey="DropDownList1Resource1">
                                        </asp:DropDownList>
                                        </td>
                                    </tr>
                                        <tr  >
                                            <td  class="tabbone3" >
                                                <asp:Label ID="lblcountry" runat="server" Text="رقم استدعاء ديوي العشري" 
                                                    meta:resourcekey="lblcountryResource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="lblcity" runat="server" Text="بيانات النشر والتوزيع " 
                                                    meta:resourcekey="lblcityResource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label3" runat="server" Text="الناشر" 
                                                    meta:resourcekey="Label3Resource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label1" runat="server" Text="المؤلف" 
                                                    meta:resourcekey="Label1Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr >
                                            <td   class="adel3">
                                                <asp:TextBox ID="dewey" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="deweyResource1"></asp:TextBox>
                                            </td>
                                           
                                            <td  class="adel3">
                                                <asp:TextBox ID="pup" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="pupResource1"></asp:TextBox>
                                            </td>
                                           
                                             <td  class="adel3">
                                                 <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="True" 
                                                     BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                                     DataSourceID="SqlDataSource5" DataTextField="publisher" 
                                                     DataValueField="id" meta:resourcekey="DropDownList5Resource1">
                                                     <asp:ListItem Value="0" meta:resourcekey="ListItemResource1">اخر</asp:ListItem>
                                                 </asp:DropDownList>
                                                 <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
                                                     ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                     SelectCommand="SELECT [id], [publisher] FROM [publishers]">
                                                 </asp:SqlDataSource>
                                            </td>
                                            
                                            <td  class="adel3">
                                                <asp:TextBox ID="auth" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="authResource1"></asp:TextBox>
                                            </td>
                                           <%-- <td align="right">
                                                <asp:Label ID="Label3" runat="server" Text="رقم ظبط النظام "></asp:Label>
                                            </td>
                                            <td align="right">
                                                <asp:TextBox ID="f35" runat="server"></asp:TextBox>
                                            </td>--%>
                                        </tr>
                                        <tr >
                                        <td class="tabbone3" >
                                            <asp:Label ID="lbladdress" runat="server" Text="العنوان وبيان المسئولية" 
                                                meta:resourcekey="lbladdressResource1"></asp:Label>
                                            </td>
                                        
                                        <td class="tabbone3" > 
                                            <asp:Label ID="lbltele1" runat="server" Text="الوصف المادي" 
                                                meta:resourcekey="lbltele1Resource1"></asp:Label>
                                            </td>
                                        
                                        <td class="tabbone3" >
                                            <asp:Label ID="lbltele2" runat="server" Text="رأس مصطلح موضوعي" 
                                                meta:resourcekey="lbltele2Resource1"></asp:Label>
                                            </td>
                                       
                                      <td class="tabbone3" >
                                            <asp:Label ID="lblemail1" runat="server" Text="ملاحظة عامة " 
                                                meta:resourcekey="lblemail1Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr >
                                        <td  class="adel3">
                                            <asp:TextBox ID="address" runat="server" BorderColor="Black" 
                                                BorderStyle="Solid" BorderWidth="1px" meta:resourcekey="addressResource2"></asp:TextBox>
                                          <br />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="address" ErrorMessage="<%$ Resources:Resource, required %>" 
                                                ValidationGroup="go" meta:resourcekey="RequiredFieldValidator4Resource1"></asp:RequiredFieldValidator>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="f300" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="f300Resource1"></asp:TextBox>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="topics" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="topicsResource1"></asp:TextBox>
                                         <br />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="topics" ErrorMessage="<%$ Resources:Resource, required %>" 
                                                ValidationGroup="go" meta:resourcekey="RequiredFieldValidator5Resource1"></asp:RequiredFieldValidator>
                                            </td>
                                       
                                        <td class="adel3">
                                            <asp:TextBox ID="notes" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                BorderWidth="1px" meta:resourcekey="notesResource1"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr  >
                                            <td  class="tabbone3" >
                                                <asp:Label ID="Label2" runat="server" Text="رقم الاستدعاء بمكتبة الكونجرس" 
                                                    meta:resourcekey="Label2Resource1"></asp:Label>
                                            </td>
                                           <td class="tabbone3" >
                                                <asp:Label ID="Label4" runat="server" Text="(تكرارية الصدور (للدوريات" 
                                                    meta:resourcekey="Label4Resource1"></asp:Label>
                                            </td>
                                            
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label5" runat="server" Text="تاريخ اخر معالجة" 
                                                    meta:resourcekey="Label5Resource1"></asp:Label>
                                            </td>
                                           
                                            <td class="tabbone3" >
                                                <asp:Label ID="Label16" runat="server" Text="التصنيف الموضوعى" 
                                                    meta:resourcekey="Label16Resource1"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td   class="adel3">
                                                <asp:TextBox ID="lcs" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="lcsResource1"></asp:TextBox>
                                            </td>
                                           
                                            <td  class="adel3">
                                                <asp:DropDownList ID="DropDownList2" runat="server"  BorderColor="Black" 
                                                    BorderStyle="Solid" BorderWidth="1px"
                                                    DataSourceID="SqlDataSource3" DataTextField="freq" DataValueField="id" 
                                                    meta:resourcekey="DropDownList2Resource1">
                                                </asp:DropDownList>
                                                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                    SelectCommand="SELECT [freq], [id] FROM [frequencies]"></asp:SqlDataSource>
                                            </td>
                                            
                                            <td  class="adel3">
                                                <asp:TextBox ID="f005" runat="server" BorderColor="Black" BorderStyle="Solid" 
                                                    BorderWidth="1px" meta:resourcekey="f005Resource1"></asp:TextBox>
                                            </td>
                                           
                                            <td class="adel3">
                                                <asp:DropDownList ID="DropDownList3" runat="server"  BorderColor="Black" 
                                                    BorderStyle="Solid" BorderWidth="1px"
                                                    DataSourceID="SqlDataSource4" DataTextField="classification" 
                                                    DataValueField="id" meta:resourcekey="DropDownList3Resource1">
                                                </asp:DropDownList>
                                                <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                                                    SelectCommand="SELECT [id], [classification] FROM [classifications]">
                                                </asp:SqlDataSource>
                                            </td>
                                        </tr>
                                    </table>
                      
                      </div>
                      <div align="right" style="padding-right:20px;" >
                       <h4>
                           <asp:Label ID="header2" runat="server" meta:resourcekey="header2" Text=""></asp:Label></h4>
                        </div>
                        <div align="right" >
                        <table align="right" style="padding-right:20px;">
                        <tr>
                         <td  valign="bottom"   style="padding-bottom:10px; padding-right:80px;">
                                <asp:Button  CssClass="zr3" ID="save" runat="server" Text="حفظ"  
                                    OnClick="save_Click" ValidationGroup="go" meta:resourcekey="saveResource1"  />
                            </td>
                            <td >
                            
                                   
                                    <eo:CallbackPanel  runat="server" ID="CallbackPanel1" Height="230px" 
                                        Width="650px" meta:resourcekey="CallbackPanel1Resource1" Triggers="">
                                        
                                    <eo:Grid ID="Grid1" Width="650px" Height="220px" runat="server" ColumnHeaderDescImage="00050304"
                                            BorderWidth="1px" IsCallbackByMe="False" BorderColor="#7F9DB9" Font-Size="8.75pt"
                                            Font-Names="Tahoma" ColumnHeaderAscImage="00050303" GridLines="Both"
                                            ColumnHeaderDividerImage="00050302" GridLineColor="199, 209, 223" AllowNewItem="True"
                                            FullRowMode="False" AllowPaging="True" PageSize="10" 
                                            meta:resourcekey="Grid1Resource1">
                                            <ItemStyles>
                                                <eo:GridItemStyleSet>
                                                <ItemStyle CssText="background-color: white"></ItemStyle>
                                                    <ItemHoverStyle CssText="background-color: whitesmoke" />
                                                    <CellStyle CssText="padding-left:8px;padding-top:2px;" />
                                                </eo:GridItemStyleSet>
                                            </ItemStyles>
                                           
                                           <ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;"></ColumnHeaderStyle>
                                            <Columns>
                                                <eo:DeleteCommandColumn DeleteText="الغاء" HeaderText="الغاء" Width="70">
                                                </eo:DeleteCommandColumn>
                                                <eo:TextBoxColumn DataField="field" HeaderText="الحقل" Width="270">
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn DataField="indicator" HeaderText="المؤشر " Width="130">
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn DataField="tag" HeaderText="التاج" Width="130">
                                                </eo:TextBoxColumn>
                                                <eo:RowNumberColumn Width="50">
                                                </eo:RowNumberColumn>
                                            </Columns>
                                            <ColumnTemplates>
                                                <eo:TextBoxColumn>
                                                    <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn>
                                                    <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
                                                </eo:TextBoxColumn>
                                                <eo:TextBoxColumn>
                                                    <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
                                                </eo:TextBoxColumn>
                                            </ColumnTemplates>
                                        </eo:Grid>
                                           
                                           </eo:CallbackPanel>
                              
                            </td>
                            
                        </tr>
                    </table>
                </div>
            
    </asp:Content>

